#!/bin/sh

#py_flag="python_3.7.4"
#py_flag="pypy_7.2.0"
#py_flag="pypy6.0_ddcCommon"
#py_flag="python"
py_flag="pypy"

proc_name=config_center

deploy_dir="/home/IOTPlatform/"
system_log_dir="/var/log/"

deploy_dir="${deploy_dir%/}"
system_log_dir="${system_log_dir%/}"

flag_add=app
py_flag=pypy
kill -9 `ps -ef|grep ${proc_name} |grep -v grep  |grep ${flag_add} |grep  "/${proc_name}/${flag_add}" |awk -F" " '{print $2}'`